package com.flying.invest.assets.model;

import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.Data;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;
import com.flying.invest.assets.RiskLevel;

@SuppressWarnings("serial")
@Meta(id="i_assets_type",title="品种类型", table="i_assets_type", primaryKeys={"type_id"})
public class AssetsType extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_assets_type";
	
	public final static String TYPE_ID = "type_id";
	public final static String NAME = "name";
	public final static String REMARKS = "remarks";
	public final static String RISK_LEVEL = "risk_level";
	
	@Param(value=TYPE_ID,   required=true,   maxlength=0,	desc="类型ID" , generator=Codes.AUTO_INCREMENT)
	private Long typeId;
	
	@Param(value=NAME,   required=false,   maxlength=50,	desc="名称" )
	private String name;
	
	@Param(value=REMARKS,   required=false,   maxlength=400,	desc="说明" )
	private String remarks;
	
	@Param(value=RISK_LEVEL,   required=false,   maxlength=0, enumClass=RiskLevel.class,	desc="风险级别" )
	private Integer riskLevel;
	
	
	public Long getTypeId() {
		return this.typeId;
	}
	
	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return this.remarks;
	}
	
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public Integer getRiskLevel() {
		return this.riskLevel;
	}
	
	public void setRiskLevel(Integer riskLevel) {
		this.riskLevel = riskLevel;
	}
}